package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TestIndexMapper;
import com.ruoyi.system.domain.TestIndex;
import com.ruoyi.system.service.ITestIndexService;

/**
 * 首页信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-14
 */
@Service
public class TestIndexServiceImpl implements ITestIndexService 
{
    @Autowired
    private TestIndexMapper testIndexMapper;


    @Override
    public TestIndex selectTestIndexByAssessId(Long assessId) {
        return null;
    }

    /**
     * 查询首页信息列表
     * 
     * @param testIndex 首页信息
     * @return 首页信息
     */
    @Override

    public List<TestIndex> selectTestIndexList(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexList(testIndex);
    }
    public List<TestIndex> selectTestIndexDoneList(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexDoneList(testIndex);
    }


    public List<TestIndex> selectTestIndexListNew(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexListNew(testIndex);
    }
    public List<TestIndex> selectTestIndexListNewChu(TestIndex testIndex){
        return testIndexMapper.selectTestIndexListNewChu(testIndex);
    }

    public List<TestIndex> selectTestIndexList2(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexList2(testIndex);
    }
    public List<TestIndex> selectTestIndexList3(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexList3(testIndex);
    }


    public List<TestIndex> selectTestIndexListWeek(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexListWeek(testIndex);
    }
    public List<TestIndex> selectTestIndexDoneListWeek(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexDoneListWeek(testIndex);
    }


    public List<TestIndex> selectTestIndexListLine1(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexListLine1(testIndex);
    }

    public List<TestIndex> selectTestIndexListLine2(TestIndex testIndex)
    {
        return testIndexMapper.selectTestIndexListLine2(testIndex);
    }
    /**
     * 新增首页信息
     * 
     * @param testIndex 首页信息
     * @return 结果
     */
    @Override
    public int insertTestIndex(TestIndex testIndex)
    {
        return testIndexMapper.insertTestIndex(testIndex);
    }

    /**
     * 修改首页信息
     * 
     * @param testIndex 首页信息
     * @return 结果
     */
    @Override
    public int updateTestIndex(TestIndex testIndex)
    {
        return testIndexMapper.updateTestIndex(testIndex);
    }

    /**
     * 批量删除首页信息
     * 
     * @param assessIds 需要删除的首页信息主键
     * @return 结果
     */
    @Override
    public int deleteTestIndexByAssessIds(Long[] assessIds)
    {
        return testIndexMapper.deleteTestIndexByAssessIds(assessIds);
    }

    /**
     * 删除首页信息信息
     * 
     * @param assessId 首页信息主键
     * @return 结果
     */
    @Override
    public int deleteTestIndexByAssessId(Long assessId)
    {
        return testIndexMapper.deleteTestIndexByAssessId(assessId);
    }
}
